import request from "@/request/request.ts";
import {paramsInterface, scheduleInterface} from "@/views/hospital/interface/interface.ts";

/* 获取预约挂号的接口 */
export const getHospitalWorkAPI = (params: paramsInterface) => {
    return request({
        url: `/hosp/hospital/auth/getBookingScheduleRule/${params.page}/${params.limit}/${params.hoscode}/${params.depcode}`,
        method: 'GET'
    })
}

/* 获取排班数据的接口 */
export const getScheduleListAPI = (scheduleParams: scheduleInterface) => {
    return request({
        url: `/hosp/hospital/auth/findScheduleList/${scheduleParams.hoscode}/${scheduleParams.depcode}/${scheduleParams.workDate}`,
        method: 'GET'
    })
}

